<?php
	global $_W,$_GPC;
	if($_W['role']){
		$gid = $_GPC['gid'];
		$class = pdo_fetchall("SELECT id,categoryname FROM".tablename('mii_ang_class')." WHERE uniacid=:uniacid ORDER BY category_order DESC",array(':uniacid'=>$_W['uniacid']));
		$goods = pdo_get('mii_ang_goods',array('id'=>$gid));
		if($goods['pics']){
			$pics =explode(',', $goods['pics']);
		}
		include $this->template('web/goods/goodsedit');
	}else{
		message('没有操作权限');
	}


?>